﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Eacademy.Domain.ViewModels.SubjectGradeViewModel>" %>
<div class="subject-grade">
    <h2>
        <%=Model.SubjectName %></h2>
    <table id="grid-style" class="grid">
        <tr>
            <th>
                Activity
            </th>
            <th>
                Total Items
            </th>
            <th>
                Score
            </th>
            <th>
                Percentage
            </th>
        </tr>
        <% foreach (var item in Model.QuizStudentViewModels)
           {%>
        <tr>
            <td>
                <%=item.QuizName %>
            </td>
            <td>
                <%=item.TotalItems %>
            </td>
            <td>
                <%=item.Score %>
            </td>
            <td>
                <%=item.Percentage %>%
            </td>
        </tr>
        <%} %>
        <tr class="grid-total">
            <td>
                Total
            </td>
            <td>
                <%=Model.TotalItems %>
            </td>
            <td>
                <%=Model.TotalScore %>
            </td>
            <td>
                <%=Model.TotalPercentage %>%
            </td>
        </tr>
    </table>
</div>
